package com.m3958.firstgwt.server.dao;

import java.util.List;
import java.util.Set;

import javax.persistence.Query;

import com.google.inject.Inject;
import com.m3958.firstgwt.server.model.BaseModel;
import com.m3958.firstgwt.server.model.ObjectClassName;
import com.m3958.firstgwt.server.model.VoteTpl;
import com.m3958.firstgwt.server.service.ModelAndDao;

public class VoteTplDao  extends BaseDao<VoteTpl> {
	
	@Inject
	public VoteTplDao(VoteTplChangeStrategy task) {
		super(VoteTpl.class);
		this.extraStrategyTask = task;
	}
	
	public ObjectClassName getObjectClassNameByEname(String ename){
		String qs = "SELECT o FROM ObjectClassName AS o WHERE o.ename = :ename";
		Query q = emp.get().createQuery(qs);
		q.setParameter("ename", ename);
		return (ObjectClassName) q.getSingleResult();
	}

	@Override
	public Integer smartCustomCount() {
		return null;
	}

	@Override
	public List<BaseModel> smartCustomFetch() {
		return null;
	}

	@Override
	public List<VoteTpl> smartNamedQueryFetch() {
		return null;
	}

	@Override
	public Integer smartNamedQueryFetchCount() {
		return null;
	}

}
